package daily.may0522;

import java.util.Scanner;

public class ExceptionTryCatchTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        try {
            System.out.println(a / b);
        } catch (ArithmeticException exception) {
            System.out.println("除数不能为0");
        } catch (Exception exception) {
            System.out.println("发生异常");
        }
    }
}
